package com.cty.C_SortAlgorithms.B_SelectSort;

import com.cty.C_SortAlgorithms.A_BubbleSort.BubbleSort;
import com.cty.F_common.DataItem;

/**
 * @Auther: cty
 * @Date: 2020/6/17 9:27
 * @Description:  测试选择排序
 * @version: 1.0
 */
public class SelectSortApp {
    public static void main(String[] args) {
        SelectSort array = new SelectSort(100);

        long key;
        for(int i=0; i<10; i++){
            key = (long) (Math.random()*99);
            array.insert(new DataItem(key));
        }
        array.displayArray();

        array.selectSort();
        array.displayArray();

    }  // end main()
}  // end BubbleSortApp{}

/**
 * 74 15 49 19 89 94 93 30 37 71
 * 15 19 30 37 49 71 74 89 93 94
 */
